-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare Chapter14 #29
Conversation
67ae666
to
5c81674
Compare
5c81674
to
f3a0f3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ざっとですが LGTM
simpledb/buffer/buffer.go
Outdated
buff := bm.findExistingBuffer(blk) | ||
blockAccessed := 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[ask] enum かと思ったんですが、これは単にアクセスすうですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hiro-o918 です。
StatInfo.BlocksAccessed()
とかに合わせたつもりだったんですが block*s*Accessed
になってなかったので修正しました 89d4ee1
return 0, fmt.Errorf("vals2 has no key %s", fieldName) | ||
} | ||
|
||
if !val1.Equals(val2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[ask]
これは最初に equals じゃなくなったもので sort するということです?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sortではなく大小比較ですね。(この関数を使ってsortするのはそう) rc.Fields
の複数キーでの比較で、スライスの順序=比較優先順
もともとの Compare()
と同様(27行目
f3a0f3f
to
0fc79c0
Compare
0fc79c0
to
89d4ee1
Compare
14章の差分のまえのいろいろ
int
=>int32
変更