Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
sitong ge
store
Commits
391777b9
Commit
391777b9
authored
2 years ago
by
厚发 周
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add block file read log
----bug=1004933
parent
2d68f121
master
develop
v2.3.4
v2.3.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
blockdb/blockfiledb/blockfile.go
blockdb/blockfiledb/blockfile.go
+1
-1
No files found.
blockdb/blockfiledb/blockfile.go
View file @
391777b9
...
...
@@ -921,7 +921,7 @@ func (l *BlockFile) doReadFileSection(fiIndex *storePb.StoreInfo) ([]byte, error
n
,
err1
:=
lfile
.
rfile
.
ReadAt
(
data
,
int64
(
fiIndex
.
Offset
))
lfile
.
RUnlock
()
if
err1
!=
nil
{
l
.
logger
.
Warnf
(
"read file section, read path: %s data failed: %
d
"
,
path
,
err1
)
l
.
logger
.
Warnf
(
"read file section, read path: %s data failed: %
v
"
,
path
,
err1
)
return
nil
,
err1
}
if
uint64
(
n
)
!=
fiIndex
.
ByteLen
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment