3 Replies Latest reply on Jul 5, 2012 10:24 AM by Clebert Suconic

    setCanREclaimFile(true) on replication

    Clebert Suconic Master

      Isn't this kind of dangerous?

       

          /**

           * Send an entire journal file to a replicating backup server.

           */

         private void sendJournalFile(JournalFile[] journalFiles, JournalContent type) throws Exception

         {

            for (JournalFile jf : journalFiles)

            {

               if (!started)

                  return;

               replicator.syncJournalFile(jf, type);

               jf.setCanReclaim(true);

            }

         }

       

       

       

      It's setting setCanReclaim regardless of the file having referenceCount completion or not, that means it may remove data if replication started now. Isn't that the case?