* Skip shrink when it doesn't save anything (#17405)
(cherry picked from commit 14c52ab018
)
# Conflicts:
# runtime/src/accounts_db.rs
* fix merge error
Co-authored-by: sakridge <sakridge@gmail.com>
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
This commit is contained in:
@@ -146,6 +146,10 @@ impl<T: Clone> ReadAccountMapEntry<T> {
|
||||
pub fn unref(&self) {
|
||||
self.ref_count().fetch_sub(1, Ordering::Relaxed);
|
||||
}
|
||||
|
||||
pub fn addref(&self) {
|
||||
self.ref_count().fetch_add(1, Ordering::Relaxed);
|
||||
}
|
||||
}
|
||||
|
||||
#[self_referencing]
|
||||
|
Reference in New Issue
Block a user