Fix migration step for new ciphertext layout

This commit is contained in:
Sebastian Messmer 2016-04-29 12:35:17 -07:00
parent 96ff62ffb0
commit 5aaba511bd

View File

@ -42,7 +42,7 @@ void OnDiskBlockStore::_migrateBlockStore() {
Key::FromString(key); // Assert that it can be parsed as a key Key::FromString(key); // Assert that it can be parsed as a key
string dir = key.substr(0, 3); string dir = key.substr(0, 3);
string file = key.substr(3); string file = key.substr(3);
bf::create_directory(dir); bf::create_directory(_rootdir / dir);
bf::rename(_rootdir / key, _rootdir / dir / file); bf::rename(_rootdir / key, _rootdir / dir / file);
} }
std::cout << "done" << std::endl; std::cout << "done" << std::endl;