Skip to content

Commit

Permalink
fix compile #527
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Sep 21, 2013
1 parent ceb42a4 commit 1670c5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/mongo/db/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ namespace mongo {

void Client::Context::_finishInit() {
dassert( Lock::isLocked() );
int writeLocked = Lock::somethingWriteLocked();

_db = dbHolderUnchecked().getOrCreate( _ns , _path );
verify(_db);
if( _doVersion ) checkNotStale();
Expand Down
1 change: 1 addition & 0 deletions src/mongo/db/namespace_details.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,7 @@ namespace mongo {

// Wrapper for offline (write locked) indexing.
void NamespaceDetails::createIndex(const BSONObj &info) {
const string sourceNS = info["ns"].String();
uassert(16548,
mongoutils::str::stream() << "not authorized to create index on " << sourceNS,
cc().getAuthorizationManager()->checkAuthorization(sourceNS,
Expand Down

0 comments on commit 1670c5c

Please sign in to comment.