本文整理汇总了C++中CommitJob::noteOp方法的典型用法代码示例。如果您正苦于以下问题:C++ CommitJob::noteOp方法的具体用法?C++ CommitJob::noteOp怎么用?C++ CommitJob::noteOp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommitJob
的用法示例。
在下文中一共展示了CommitJob::noteOp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: droppingDb
/** 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();
}
示例2: createdFile
/** 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);
}
示例3: createdFile
void DurableImpl::createdFile(const std::string& filename, unsigned long long len) {
boost::shared_ptr<DurOp> op(new FileCreatedOp(filename, len));
commitJob.noteOp(op);
}