diff options
| author | Michael Paquier | 2012-07-11 00:37:36 +0000 |
|---|---|---|
| committer | Michael Paquier | 2012-07-11 00:37:36 +0000 |
| commit | 43b8ce14dac73ba6d4c8d358207b30b86302d76f (patch) | |
| tree | fbe053fc1904d6c4473de9ad6bd4a370970a9c05 /src | |
| parent | 249637a013ddf4e284411932521e420db4d6fc0f (diff) | |
Remove duplicate block of code looking in gtm_serialize.c
It looks like it was accidentally copy/pasted. This has as consequence
to write the coordinator name twice when serializing, so the result
could not be deserialized properly.
Patch by Andrei Martsinchyk
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtm/common/gtm_serialize.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gtm/common/gtm_serialize.c b/src/gtm/common/gtm_serialize.c index 954296d67b..0e878e6ddf 100644 --- a/src/gtm/common/gtm_serialize.c +++ b/src/gtm/common/gtm_serialize.c @@ -251,22 +251,6 @@ gtm_serialize_transactioninfo(GTM_TransactionInfo *data, char *buf, size_t bufle len += sizeof(uint32); } - /* GTM_TransactionInfo.gti_coordname */ - if (data->gti_coordname != NULL) - { - namelen = (uint32)strlen(data->gti_coordname); - memcpy(buf + len, &namelen, sizeof(uint32)); - len += sizeof(uint32); - memcpy(buf + len, data->gti_coordname, namelen); - len += namelen; - } - else - { - namelen = 0; - memcpy(buf + len, &namelen, sizeof(uint32)); - len += sizeof(uint32); - } - /* GTM_TransactionInfo.gti_xmin */ memcpy(buf + len, &(data->gti_xmin), sizeof(GlobalTransactionId)); len += sizeof(GlobalTransactionId); |
