diff options
| author | Pieter Wuille <[email protected]> | 2012-09-04 23:01:03 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-10-20 23:08:56 +0200 |
| commit | 9f56678fceef0a53411bdfcac82ab65f7b896838 (patch) | |
| tree | 23b1e40a31e0177beb6ab65d06e4458d6feb04af /src/leveldb/util | |
| parent | Disable libsnappy detection in LevelDB (diff) | |
| download | discoin-9f56678fceef0a53411bdfcac82ab65f7b896838.tar.xz discoin-9f56678fceef0a53411bdfcac82ab65f7b896838.zip | |
Backport Win32 LevelDB env from C++0x to C++
Since the gitian mingw compiler doesn't support C++0x yet.
Diffstat (limited to 'src/leveldb/util')
| -rw-r--r-- | src/leveldb/util/env_boost.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leveldb/util/env_boost.cc b/src/leveldb/util/env_boost.cc index 0190f9fb7..055c65743 100644 --- a/src/leveldb/util/env_boost.cc +++ b/src/leveldb/util/env_boost.cc @@ -401,7 +401,7 @@ class PosixEnv : public Env { boost::interprocess::file_lock fl(fname.c_str()); BoostFileLock * my_lock = new BoostFileLock(); - my_lock->fl_ = std::move(fl); + fl.swap(my_lock->fl_); if (!my_lock->fl_.try_lock()) { return Status::IOError("database already in use: could not acquire exclusive lock"); } |