diff options
Diffstat (limited to 'src/mongo/db/dur.h')
-rw-r--r-- | src/mongo/db/dur.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/dur.h b/src/mongo/db/dur.h index ffacf90f591..9914264c83e 100644 --- a/src/mongo/db/dur.h +++ b/src/mongo/db/dur.h @@ -34,7 +34,7 @@ namespace mongo { is created first, and the journal will just replay the creation if the create didn't happen because of crashing. */ - virtual void createdFile(string filename, unsigned long long len) = 0; + virtual void createdFile(const std::string& filename, unsigned long long len) = 0; /** Declarations of write intent. @@ -168,7 +168,7 @@ namespace mongo { void* writingAtOffset(void *buf, unsigned ofs, unsigned len) { return buf; } void* writingRangesAtOffsets(void *buf, const vector< pair< long long, unsigned > > &ranges) { return buf; } void declareWriteIntent(void *, unsigned); - void createdFile(string filename, unsigned long long len) { } + void createdFile(const std::string& filename, unsigned long long len) { } bool awaitCommit() { return false; } bool commitNow() { return false; } bool commitIfNeeded(bool) { return false; } @@ -182,7 +182,7 @@ namespace mongo { void* writingAtOffset(void *buf, unsigned ofs, unsigned len); void* writingRangesAtOffsets(void *buf, const vector< pair< long long, unsigned > > &ranges); void declareWriteIntent(void *, unsigned); - void createdFile(string filename, unsigned long long len); + void createdFile(const std::string& filename, unsigned long long len); bool awaitCommit(); bool commitNow(); bool aCommitIsNeeded() const; |