~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to include/ctdb_protocol.h

  • Committer: Package Import Robot
  • Author(s): Mathieu Parent
  • Date: 2011-11-06 15:18:59 UTC
  • mto: (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: package-import@ubuntu.com-20111106151859-84nk51h3enndlo4q
Tags: upstream-1.11+git20111102
ImportĀ upstreamĀ versionĀ 1.11+git20111102

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#define CTDB_DS_ALIGNMENT 8
31
31
 
32
32
 
33
 
#define CTDB_NULL_FUNC      0xFF000001
34
 
#define CTDB_FETCH_FUNC     0xFF000002
 
33
#define CTDB_NULL_FUNC                  0xFF000001
 
34
#define CTDB_FETCH_FUNC                 0xFF000002
 
35
#define CTDB_FETCH_WITH_HEADER_FUNC     0xFF000003
35
36
 
36
37
 
37
38
struct ctdb_call {
40
41
        TDB_DATA call_data;
41
42
        TDB_DATA reply_data;
42
43
        uint32_t status;
43
 
#define CTDB_IMMEDIATE_MIGRATION        0x00000001
 
44
#define CTDB_IMMEDIATE_MIGRATION                0x00000001
44
45
#define CTDB_CALL_FLAG_VACUUM_MIGRATION         0x00000002
 
46
#define CTDB_WANT_READONLY                      0x00000004
45
47
        uint32_t flags;
46
48
};
47
49
 
50
52
*/
51
53
struct ctdb_call_info {
52
54
        TDB_DATA key;          /* record key */
 
55
        struct ctdb_ltdb_header *header;
53
56
        TDB_DATA record_data;  /* current data in the record */
54
57
        TDB_DATA *new_data;    /* optionally updated record data */
55
58
        TDB_DATA *call_data;   /* optionally passed from caller */
363
366
                    CTDB_CONTROL_TCP_ADD_DELAYED_UPDATE  = 126,
364
367
                    CTDB_CONTROL_GET_STAT_HISTORY        = 127,
365
368
                    CTDB_CONTROL_SCHEDULE_FOR_DELETION   = 128,
 
369
                    CTDB_CONTROL_SET_DB_READONLY         = 129,
366
370
};
367
371
 
368
372
/*
486
490
#define CTDB_REC_FLAG_MIGRATED_WITH_DATA        0x00010000
487
491
#define CTDB_REC_FLAG_VACUUM_MIGRATED           0x00020000
488
492
#define CTDB_REC_FLAG_AUTOMATIC                 0x00040000
 
493
#define CTDB_REC_RO_HAVE_DELEGATIONS            0x01000000
 
494
#define CTDB_REC_RO_HAVE_READONLY               0x02000000
 
495
#define CTDB_REC_RO_REVOKING_READONLY           0x04000000
 
496
#define CTDB_REC_RO_REVOKE_COMPLETE             0x08000000
489
497
        uint32_t flags;
490
498
};
491
499