Prevent two parallel flushes of the same object
This commit is contained in:
+5
-1
@@ -33,7 +33,6 @@
|
||||
#define ST_J_WRITTEN 3
|
||||
#define ST_J_SYNCED 4
|
||||
#define ST_J_STABLE 5
|
||||
#define ST_J_MOVE_READ_SUBMITTED 6
|
||||
#define ST_J_MOVE_WRITE_SUBMITTED 7
|
||||
#define ST_J_MOVE_SYNCED 8
|
||||
|
||||
@@ -109,6 +108,11 @@ inline bool operator == (const object_id & a, const object_id & b)
|
||||
return a.inode == b.inode && a.stripe == b.stripe;
|
||||
}
|
||||
|
||||
inline bool operator != (const object_id & a, const object_id & b)
|
||||
{
|
||||
return a.inode != b.inode || a.stripe != b.stripe;
|
||||
}
|
||||
|
||||
inline bool operator < (const object_id & a, const object_id & b)
|
||||
{
|
||||
return a.inode < b.inode || a.inode == b.inode && a.stripe < b.stripe;
|
||||
|
||||
Reference in New Issue
Block a user