Hello,I am developing an application using .Net 4.0 that uses Mongo as DB storage. What I am trying to do is flush all the data the the disk when the user does a certain operation. I found this thread:I was wondering how do I connect to the AdminDatabase? Is the AdminDatabase my database with MongoCredentials("admin","")?Best regards,Silviu.
And the code that generated the error:MongoDatabase database = MongoServer.GetDatabase(databaseName);if (database != null){var fsync = new CommandDocument { { "fsync", 1 } };//, { "async", 1 } };database.RunCommand(fsync); -> error thrown here}--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb