eden/fs/store/hg/HgBackingStore.cpp
// A helper function to avoid repeating noisy casts/conversions when
// loading data from a UnionDatapackStore instance.  This variant will
// ask the store to rescan and look for changed packs if it encounters
// a missing key.
A helper function to avoid repeating noisy casts/conversions when
loading data from a UnionDatapackStore instance.  This variant will
ask the store to rescan and look for changed packs if it encounters
a missing key.
A helper function to avoid repeating noisy casts / conversions when loading data from a UnionDatapackStore instance . This variant will ask the store to rescan and look for changed packs if it encounters a missing key .
ConstantStringRef unionStoreGetWithRefresh(
    UnionDatapackStore& unionStore,
    StringPiece name,
    const Hash& id) {
  try {
    return unionStoreGet(unionStore, name, id);
  } catch (const MissingKeyError& ex) {
    unionStore.markForRefresh();
    return unionStoreGet(unionStore, name, id);
  }
}
ConstantStringRef unionStoreGetWithRefresh ( UnionDatapackStore & unionStore , StringPiece name , const Hash & id ) { try { return unionStoreGet ( unionStore , name , id ) ; } catch ( const MissingKeyError & ex ) { unionStore . markForRefresh ( ) ; return unionStoreGet ( unionStore , name , id ) ; } }
A helper function to avoid repeating noisy casts/conversions when
loading data from a UnionDatapackStore instance.
A helper function to avoid repeating noisy casts / conversions when loading data from a UnionDatapackStore instance .