} BlueSkyCloudPointer;
typedef enum {
+ LOGTYPE_INVALID = -1,
LOGTYPE_UNKNOWN = 0,
LOGTYPE_DATA = 1,
LOGTYPE_INODE = 2,
// Pointers to other objects
GArray *pointers;
- // Serialized data, if available in memory (otherwise NULL).
+ // Serialized data, if available in memory (otherwise NULL), and a lock
+ // count which tracks if there are users that require the data to be kept
+ // around.
BlueSkyRCStr *data;
+ int data_lock_count;
};
/* Serialize objects into a log segment to be written to the cloud. */