[CSHARP-298] Add a method to perform a fsync Created: 05/Aug/11 Updated: 20/Mar/14 Resolved: 28/Sep/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.1 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Flavien | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | fsync | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
Mongo supports the fsync command since 1.3 (http://www.mongodb.org/display/DOCS/fsync+Command). It would be good to have a way to do that from the C# driver. |
| Comments |
| Comment by Flavien [ 07/Aug/11 ] |
|
Yes, this is fine, thank you. I just wasn't aware you could do that. You can close the work item. |
| Comment by Robert Stam [ 05/Aug/11 ] |
|
You can do this already: server.AdminDatabase.RunCommand("fsync"); or if you want to provide the async flag: var fsync = new CommandDocument { { "fsync", 1 }, { "async", 1 } }; We chose not to add a helper method for this command because we feel it would be very rarely used. Does the above way of running an fsync seem adequate to you? |