dermesser/leveldb-rs

stack overflow when recover database

Closed this issue · 0 comments

EYHN commented

stack overflow when recover database.

Check the call stack and find that it has been recursively infinite from Display::fmt -> to_string.

leveldb-rs/src/error.rs

Lines 48 to 52 in abf543b

impl Display for Status {
fn fmt(&self, fmt: &mut Formatter) -> result::Result<(), fmt::Error> {
fmt.write_str(&self.to_string())
}
}