1. 06 5月, 2020 2 次提交
    • Y
      [vnode] Handle failure of adding to hash in vnodeOpen(). · 4f4c4368
      yifan hao 提交于
      This patch adds error handling for call to vnodeOpen() in vnodeOpen.
      Previously the error is not handled, which could cause the allocated
      pVnode not registered anywhere, and this could cause memory leak.
      
      This patch also adds a missing deallocation of pVnode on failure.
      taosDeleteIntHash() only removes the pVnode from hash table, but
      pVnode needs to be deallocated explicitly.
      4f4c4368
    • Y
      [vnode] Make vnode versioning more robust. · 7002d963
      yifan hao 提交于
      This patch changes version read/write path such that it does not
      allocate heap memory while dealing with versioning. Instead, because
      version data is short, it uses stack allcocated array to hold the versioning
      data. This eliminate one potential failure in read/write version, which is
      used to guarantee data consistency.
      
      * Bonus fix
      The patch also fixes a bunch of failure handling in the path of vnode
      write.
      7002d963
  2. 05 5月, 2020 29 次提交
  3. 04 5月, 2020 9 次提交