This fixes #5142, which allows a StackerDB replica to shrink if its configuration requires a smaller number of slots. This ensures that nodes that had the larger version of the replica are able to sync properly with nodes that only ever had the smaller version of the replica (whereas before, the former would erroneously report inventory vectors for slots that were no longer part of the DB, and complain when the received inventories from the latter as being "too small").
This fixes #5142, which allows a StackerDB replica to shrink if its configuration requires a smaller number of slots. This ensures that nodes that had the larger version of the replica are able to sync properly with nodes that only ever had the smaller version of the replica (whereas before, the former would erroneously report inventory vectors for slots that were no longer part of the DB, and complain when the received inventories from the latter as being "too small").