summaryrefslogtreecommitdiff
path: root/db/pdfile.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-28 15:22:24 -0400
committerAaron <aaron@10gen.com>2009-05-28 15:22:24 -0400
commit6a2a8d385f70db58e864b424aa43643822d04f84 (patch)
tree2485450b9225e05b9aaab3250bead43b549df4e4 /db/pdfile.h
parent0c2ab274ee2be1aadc0e616bb54a08545c3aa97e (diff)
downloadmongo-6a2a8d385f70db58e864b424aa43643822d04f84.tar.gz
comments MINOR
Diffstat (limited to 'db/pdfile.h')
-rw-r--r--db/pdfile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/pdfile.h b/db/pdfile.h
index 9a7938b6a0c..af15264af24 100644
--- a/db/pdfile.h
+++ b/db/pdfile.h
@@ -364,9 +364,12 @@ namespace mongo {
namespace mongo {
+ // Heritable class to implement an operation that may be applied to all
+ // files in a database using _applyOpToDataFiles()
class FileOp {
public:
virtual ~FileOp() {}
+ // Return true if file exists and operation successful
virtual bool apply( const boost::filesystem::path &p ) = 0;
virtual const char * op() const = 0;
};