Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22fa00199
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22fa00199
Commits
c8effab7
Unverified
Commit
c8effab7
authored
3 years ago
by
jiangxinmeng1
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix ut TestAddrVersion (#2776)
parent
455725d3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/vm/engine/tae/logstore/store/store_test.go
+2
-3
2 additions, 3 deletions
pkg/vm/engine/tae/logstore/store/store_test.go
pkg/vm/engine/tae/logstore/store/syncbase.go
+1
-1
1 addition, 1 deletion
pkg/vm/engine/tae/logstore/store/syncbase.go
with
3 additions
and
4 deletions
pkg/vm/engine/tae/logstore/store/store_test.go
+
2
−
3
View file @
c8effab7
...
...
@@ -73,9 +73,8 @@ func TestAddrVersion(t *testing.T) {
}
testutils
.
WaitExpect
(
4000
,
func
()
bool
{
s
.
addrmu
.
RLock
()
defer
s
.
addrmu
.
RUnlock
()
return
len
(
s
.
addrs
[
entry
.
GTUncommit
])
==
5
t
.
Log
(
s
.
GetSynced
(
entry
.
GTUncommit
))
return
s
.
GetSynced
(
entry
.
GTUncommit
)
==
10
})
s
.
addrmu
.
RLock
()
defer
s
.
addrmu
.
RUnlock
()
...
...
This diff is collapsed.
Click to expand it.
pkg/vm/engine/tae/logstore/store/syncbase.go
+
1
−
1
View file @
c8effab7
...
...
@@ -208,8 +208,8 @@ func (base *syncBase) OnEntryReceived(v *entry.Info) error {
}
// fmt.Printf("receive uncommit %d-%d\n", v.Group, v.GroupLSN)
default
:
base
.
syncing
[
v
.
Group
]
=
v
.
GroupLSN
}
base
.
syncing
[
v
.
Group
]
=
v
.
GroupLSN
base
.
addrmu
.
Lock
()
defer
base
.
addrmu
.
Unlock
()
addr
:=
v
.
Info
.
(
*
VFileAddress
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment