diff options
author | Kotresh HR <khiremat@redhat.com> | 2015-07-03 16:32:56 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-07-28 22:09:46 -0700 |
commit | 62c2e7f8b9211ba149368d26f772f175fe51b43b (patch) | |
tree | e2cc105e1d9af5914c0050ee1f548a41361bf98a /cli/src/cli-rpc-ops.c | |
parent | 8f04ec33bc86aa464a5f8b77f9d64e5608cb6f1b (diff) |
geo-rep: Fix history failure
Both ACTIVE and PASSIVE workers register to changelog
at almost same time. When PASSIVE worker becomes ACTIVE,
the start and end time would be current stime and register_time
repectively for history API. Hence register_time would be less
then stime for which history obviously fails. But it will
be successful for the next restart as new register_time > stime.
Fix is to pass current time as the end time to history call
instead of the register_time.
Also improvised the logging for ACTIVE/PASSIVE switching.
Change-Id: Idc08b4b55c7a4c575ba44918a98389164ccbee8f
BUG: 1239044
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/11524
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
0 files changed, 0 insertions, 0 deletions