浏览代码

HPCC-19760 Avoid changing member crc

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 7 年之前
父节点
当前提交
043d67263f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      common/remote/sockfile.cpp

+ 4 - 4
common/remote/sockfile.cpp

@@ -4227,7 +4227,7 @@ class CRemoteIndexBaseActivity : public CRemoteDiskBaseActivity
 protected:
     bool isTlk = false;
     bool allowPreload = false;
-    unsigned crc = 0;
+    unsigned fileCrc = 0;
     Owned<IKeyIndex> keyIndex;
     Owned<IKeyManager> keyManager;
 
@@ -4239,9 +4239,9 @@ protected:
         CDateTime modTime;
         indexFile->getTime(nullptr, &modTime, nullptr);
         time_t modTimeTT = modTime.getSimple();
-        CRC32 crc32(crc);
+        CRC32 crc32(fileCrc);
         crc32.tally(sizeof(time_t), &modTimeTT);
-        crc = crc32.get();
+        unsigned crc = crc32.get();
 
         keyIndex.setown(createKeyIndex(fileName, crc, isTlk, allowPreload));
         keyManager.setown(createLocalKeyManager(*record, keyIndex, nullptr, true));
@@ -4263,7 +4263,7 @@ public:
     {
         isTlk = config.getPropBool("isTlk");
         allowPreload = config.getPropBool("allowPreload");
-        crc = config.getPropInt("crc");
+        fileCrc = config.getPropInt("crc");
     }
 };