Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async is a future reserved word in c#. Changing variable to use isAsync instead of async. #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NoRM/IMongoAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface IMongoAdmin : IDisposable
BuildInfoResponse BuildInfo();
IMongoDatabase Database { get; }
DroppedDatabaseResponse DropDatabase();
ForceSyncResponse ForceSync(bool async);
ForceSyncResponse ForceSync(bool isAsync);
IEnumerable<DatabaseInfo> GetAllDatabases();
IEnumerable<CurrentOperationResponse> GetCurrentOperations();
int GetProfileLevel();
Expand Down
6 changes: 3 additions & 3 deletions NoRM/MongoAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ public IEnumerable<DatabaseInfo> GetAllDatabases()
/// <summary>
/// Request that the server write any uncommitted writes to the filesystem.
/// </summary>
/// <param retval="async">if set to <c>true</c> [async].</param>
/// <param retval="isAsync">if set to <c>true</c> [async].</param>
/// <returns></returns>
public ForceSyncResponse ForceSync(bool async)
public ForceSyncResponse ForceSync(bool isAsync)
{
AssertConnectedToAdmin();
return this.Database.GetCollection<ForceSyncResponse>("$cmd").FindOne(new { fsync = 1d, async });
return this.Database.GetCollection<ForceSyncResponse>("$cmd").FindOne(new { fsync = 1d, isAsync });
}

/// <summary>
Expand Down