You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2010/09/21 17:50:41 UTC

svn commit: r999473 - /qpid/trunk/qpid/cpp/src/qpid/broker/MessageStore.h

Author: kpvdr
Date: Tue Sep 21 15:50:41 2010
New Revision: 999473

URL: http://svn.apache.org/viewvc?rev=999473&view=rev
Log:
Renamed the MessageStore interface truncateInit parameter to a more generic name. Changed the language of the description to match. This is a tidy-up only, there should be no code implications.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/MessageStore.h

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/MessageStore.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/MessageStore.h?rev=999473&r1=999472&r2=999473&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/MessageStore.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/MessageStore.h Tue Sep 21 15:50:41 2010
@@ -47,15 +47,17 @@ class MessageStore : public Transactiona
 
     /**
      * If called after initialization but before recovery, will discard the database
-     * and reinitialize using an empty store dir. If the parameter pushDownStoreFiles
-     * is true, the content of the store dir will be moved to a backup dir inside the
-     * store dir. This is used when cluster nodes recover and must get thier content
-     * from a cluster sync rather than directly fromt the store.
-     *
-     * @param pushDownStoreFiles If true, will move content of the store dir into a
-     *                           subdir, leaving the store dir otherwise empty.
+     * content and reinitialize as though it were a new installation. If the parameter
+     * saveStoreContent is true, the content of the store will be saved in such a way
+     * that the truncate can be reversed. This is used when cluster nodes recover and
+     *  must get their content from a cluster sync rather than directly from the store.
+     *
+     * @param saveStoreContent If true, will move content of the store to a backup
+     *                         location where they may be restored later if needed. It is
+     *                         not necessary to save more than one prior version of the
+     *                         store.
      */
-    virtual void truncateInit(const bool pushDownStoreFiles = false) = 0;
+    virtual void truncateInit(const bool saveStoreContent = false) = 0;
 
     /**
      * Record the existence of a durable queue



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org