Permalink
Browse files

gridfs_readdir: list write-open files

  • Loading branch information...
1 parent db24f86 commit 04c6b9d7e3dfdb38b5e23ced1139b91150673976 @mikejs committed Sep 27, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 operations.cpp
View
@@ -101,6 +101,12 @@ int gridfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
}
sdc.done();
+ for(map<string,LocalGridFile*>::const_iterator i = open_files.begin();
+ i != open_files.end(); i++)
+ {
+ filler(buf, i->first.c_str(), NULL, 0);
+ }
+
return 0;
}

0 comments on commit 04c6b9d

Please sign in to comment.