assert on AcctInfo.store_id with cached store (#21952)

This commit is contained in:
Jeff Washington (jwash) 2022-02-15 15:22:36 -06:00 committed by GitHub
parent b44f40ee3a
commit 43393ea45d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ impl AccountInfo {
}
pub fn store_id(&self) -> AppendVecId {
// if the account is in a cached store, the store_id is meaningless
assert!(!self.is_cached());
self.store_id
}