[btree] Fix ref-counting on overwritten values
This commit is contained in:
@@ -25,6 +25,14 @@ namespace thin_provisioning {
|
||||
uint32_t snapshotted_time_;
|
||||
};
|
||||
|
||||
inline bool operator==(device_details const& lhs, device_details const& rhs) {
|
||||
return false; // device_details are not compariable
|
||||
}
|
||||
|
||||
inline bool operator!=(device_details const& lhs, device_details const& rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
struct device_details_traits {
|
||||
typedef device_details_disk disk_type;
|
||||
typedef device_details value_type;
|
||||
|
||||
@@ -24,6 +24,14 @@ namespace thin_provisioning {
|
||||
uint32_t time_;
|
||||
};
|
||||
|
||||
inline bool operator==(block_time const& lhs, block_time const& rhs) {
|
||||
return lhs.block_ == rhs.block_;
|
||||
}
|
||||
|
||||
inline bool operator!=(block_time const& lhs, block_time const& rhs) {
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
class block_time_ref_counter {
|
||||
public:
|
||||
block_time_ref_counter(space_map::ptr sm);
|
||||
|
||||
Reference in New Issue
Block a user