summaryrefslogtreecommitdiff
path: root/db/durop.h
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-12-15 02:08:49 -0500
committerdwight <dwight@10gen.com>2010-12-15 10:42:45 -0500
commitdad23bdae06bf171b7f2e5b2f1d4ed1f1ca07751 (patch)
tree1f7d89dac7bec49132fd46862e258e2417d56563 /db/durop.h
parent62fbef60e708eaaf02de89be7af18edea4e5677e (diff)
downloadmongo-dad23bdae06bf171b7f2e5b2f1d4ed1f1ca07751.tar.gz
Revert "str stuff"
This reverts commit c4b67bcf8092dec4dc2bc20a86808d5fde517381.
Diffstat (limited to 'db/durop.h')
-rw-r--r--db/durop.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/db/durop.h b/db/durop.h
index 2000ba3a616..c204a82bb20 100644
--- a/db/durop.h
+++ b/db/durop.h
@@ -20,7 +20,6 @@
#include "dur_journalformat.h"
#include "bufreader.h"
-#include "../util/paths.h"
namespace mongo {
@@ -77,15 +76,15 @@ namespace mongo {
class FileCreatedOp : public DurOp {
public:
FileCreatedOp(BufReader& log);
- /** param f filename to create with path */
- FileCreatedOp(string f, unsigned long long l);
+ FileCreatedOp(string f, unsigned long long l) :
+ DurOp(JEntry::OpCode_FileCreated), _filename(f), _len(l) { }
virtual void replay();
virtual string toString();
virtual bool needFilesClosed();
protected:
virtual void _serialize(AlignedBuilder& ab);
private:
- RelativePath _p;
+ string _filename;
unsigned long long _len; // size of file, not length of name
};