-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What do these four lines of code do? #1187
Comments
In short: I would argue that this would only ever be a problem if you were to call those functions on an instance of In detail: If you look at the relevant header (
Since If you want to provide your own implementation of The same argument also holds for |
leveldb/util/env.cc
Line 25 in 068d5ee
leveldb/util/env.cc
Line 26 in 068d5ee
leveldb/util/env.cc
Line 28 in 068d5ee
leveldb/util/env.cc
Line 29 in 068d5ee
`Status Env::RemoveDir(const std::string& dirname) { return DeleteDir(dirname); }
Status Env::DeleteDir(const std::string& dirname) { return RemoveDir(dirname); }
Status Env::RemoveFile(const std::string& fname) { return DeleteFile(fname); }
Status Env::DeleteFile(const std::string& fname) { return RemoveFile(fname); }`
i think calling them will cause stack overflow
The text was updated successfully, but these errors were encountered: