Exemple #1
0
        /** indicate that a database is about to be dropped.  call before the actual drop. */
        void DurableImpl::droppingDb(string db) { 
            shared_ptr<DurOp> op( new DropDbOp(db) );
            commitJob.noteOp(op);

            // must commit now, before files are actually unlinked:
            groupCommit();
        }
Exemple #2
0
 /** Declare that a file has been created 
     Normally writes are applied only after journalling, for safety.  But here the file 
     is created first, and the journal will just replay the creation if the create didn't 
     happen because of crashing.
 */
 void DurableImpl::createdFile(string filename, unsigned long long len) { 
     shared_ptr<DurOp> op( new FileCreatedOp(filename, len) );
     commitJob.noteOp(op);
 }
Exemple #3
0
 void DurableImpl::createdFile(const std::string& filename, unsigned long long len) {
     boost::shared_ptr<DurOp> op(new FileCreatedOp(filename, len));
     commitJob.noteOp(op);
 }