~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Mark Atwood
  • Date: 2011-05-02 23:26:54 UTC
  • mfrom: (2290.1.9 server_uuid_repl)
  • Revision ID: me@mark.atwood.name-20110502232654-hd1ufzm7o4mtrutf
mergeĀ lp:~skinny.moey/drizzle/server_uuid_repl

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
extern char empty_c_string[1];
52
52
extern const char **errmesg;
53
53
extern uint32_t server_id;
 
54
extern std::string server_uuid;
54
55
 
55
56
#define TC_HEURISTIC_RECOVER_COMMIT   1
56
57
#define TC_HEURISTIC_RECOVER_ROLLBACK 2
257
258
    scoreboard_index= in_scoreboard_index;
258
259
  }
259
260
 
 
261
  bool isOriginatingServerUUIDSet()
 
262
  {
 
263
    return originating_server_uuid_set;
 
264
  }
 
265
 
 
266
  void setOriginatingServerUUID(std::string in_originating_server_uuid)
 
267
  {
 
268
    originating_server_uuid= in_originating_server_uuid;
 
269
    originating_server_uuid_set= true;
 
270
  }
 
271
 
 
272
  std::string &getOriginatingServerUUID()
 
273
  {
 
274
    return originating_server_uuid;
 
275
  }
 
276
 
 
277
  void setOriginatingCommitID(uint64_t in_originating_commit_id)
 
278
  {
 
279
    originating_commit_id= in_originating_commit_id;
 
280
  }
 
281
 
 
282
  uint64_t getOriginatingCommitID()
 
283
  {
 
284
    return originating_commit_id;
 
285
  }
 
286
 
260
287
  /**
261
288
   * Is this session viewable by the current user?
262
289
   */
669
696
    return server_id;
670
697
  }
671
698
 
 
699
  inline std::string &getServerUUID() const
 
700
  {
 
701
    return server_uuid;
 
702
  }
 
703
 
672
704
  /**
673
705
    There is BUG#19630 where statement-based replication of stored
674
706
    functions/triggers with two auto_increment columns breaks.
1162
1194
  rusage usage;
1163
1195
  identifier::user::mptr security_ctx;
1164
1196
  int32_t scoreboard_index;
 
1197
  bool originating_server_uuid_set;
 
1198
  std::string originating_server_uuid;
 
1199
  uint64_t originating_commit_id;
1165
1200
  plugin::Client *client;
1166
1201
};
1167
1202