diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-12-09 01:11:24 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-12-09 01:11:24 +0000 |
commit | 1641986f4959d3f998afecd6bcdc668de0a9c7f7 (patch) | |
tree | e266c13062f89aef0bfb75a2709d1c790484e67e | |
parent | 63a94c9f6c0ad4c78263b030a91e9bcb5472a195 (diff) |
Properly report when we failed to lock the account, so that changes
requiring a write lock don't proceed when we don't have one.
-rw-r--r-- | bin/bbstoreaccounts/bbstoreaccounts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bbstoreaccounts/bbstoreaccounts.cpp b/bin/bbstoreaccounts/bbstoreaccounts.cpp index 8a00e3b9..15b9fff6 100644 --- a/bin/bbstoreaccounts/bbstoreaccounts.cpp +++ b/bin/bbstoreaccounts/bbstoreaccounts.cpp @@ -147,7 +147,7 @@ bool GetWriteLockOnAccount(NamedLock &rLock, const std::string rRootDir, int Dis // Couldn't lock the account -- just stop now BOX_ERROR("Failed to lock the account, did not change limits. " "Try again later."); - return 1; + return false; } return gotLock; |