mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Use Unicode Windows Env for Destroy in LevelDb.
PiperOrigin-RevId: 767303270
This commit is contained in:
committed by
Copybara-Service
parent
2f07f1ceee
commit
5e1ec2c2e1
@@ -226,7 +226,11 @@ void LeveldbDataSet<T, isMessageLite>::Destroy(
|
||||
absl::AnyInvocable<void(bool) &&> callback) {
|
||||
LOG(INFO) << "Destroy is called.";
|
||||
db_.reset();
|
||||
leveldb::DestroyDB(path_, leveldb::Options());
|
||||
leveldb::Options options;
|
||||
#if defined(_WIN32)
|
||||
options.env = nearby::windows::WindowsEnv::Default();
|
||||
#endif // defined(_WIN32)
|
||||
leveldb::DestroyDB(path_, options);
|
||||
std::move(callback)(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user