提交 e9675c7f 编写于 作者: D DoMyJob

Fix data count mismatch between different writer open

Signed-off-by: NDoMyJob <46307927+DoMyJob@users.noreply.github.com>
上级 f9f8932d
...@@ -313,6 +313,7 @@ func buildYottaDisk(header *ydcommon.Header, storage storage.Storage, opt *opt.O ...@@ -313,6 +313,7 @@ func buildYottaDisk(header *ydcommon.Header, storage storage.Storage, opt *opt.O
for i := uint32(0); i < header.RangeCaps; i++ { for i := uint32(0); i < header.RangeCaps; i++ {
index.sizes[i] = (uint16(indexSizeBuf[(i << 1) + 1]) << 8) | uint16(indexSizeBuf[i << 1]) index.sizes[i] = (uint16(indexSizeBuf[(i << 1) + 1]) << 8) | uint16(indexSizeBuf[i << 1])
} }
index.total = header.DataCount
yd := &YottaDisk{ yd := &YottaDisk{
opt, opt,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册