Skip to content
Snippets Groups Projects
Commit 580f1505 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Konstantin Osipov
Browse files

replication: gather all replicaset variables in struct

There is already a handful of global variables describing the replica
set state and there is going to be more so let's consolidate them in
a singleton struct:

  replicaset => replicaset.hash
  replica_pool => replicaset.pool
  anon_replicas => replicaset.anon
  replicaset_vclock => replicaset.vclock

While we are at it, let's also move INSTANCE_UUID definition from
xrow.c to replication.cc, where it truly belongs. The only reason
I see for it to be defined in xrow.c is to compile vinyl unit tests
without linking replication.o, but we can easily circumvent this by
defining INSTANCE_UUID in vy_iterators_helpers.c.

Suggested by @kostja
parent 3adb9789
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment