Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
coreospackage
Commits
9410fde9
Commit
9410fde9
authored
7 years ago
by
Sandeep S. Shewalkar
Browse files
Options
Downloads
Patches
Plain Diff
Lazywrited modifications
variable name changed
parent
bf82ab36
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!21
LazyWriter and SaveToFDB modifications
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalhelper/lazywriter.go
+2
-3
dalhelper/lazywriter.go
with
2 additions
and
3 deletions
dalhelper/lazywriter.go
+
2
−
3
View file @
9410fde9
...
...
@@ -284,9 +284,9 @@ func (lfd *LazyFDPHelper) PurgeCache() {
if
getError
!=
nil
{
logginghelper
.
LogError
(
"error occured while getting "
,
item
,
" from gcache"
)
}
cachedObjectActual
,
ok
:=
cachedObject
.
(
LazyCacheObject
)
cachedObjectActual
,
conversionSuccessful
:=
cachedObject
.
(
LazyCacheObject
)
if
ok
&&
cachedObjectActual
.
ChangeCount
>
0
{
if
conversionSuccessful
&&
cachedObjectActual
.
ChangeCount
>
0
{
cachedObjectActual
.
IsLocked
=
true
saveDataToFDB
(
cachedObjectActual
.
FileName
,
cachedObjectActual
.
InterfaceData
)
cachedObjectActual
.
ChangeCount
=
0
...
...
@@ -295,7 +295,6 @@ func (lfd *LazyFDPHelper) PurgeCache() {
lfd
.
DISK_WRITE_COUNT
++
lazyMutex
.
Unlock
()
}
}
lazyMutex
.
Lock
()
lfd
.
gc
.
Purge
()
...
...
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
Menu
Explore
Projects
Groups
Topics
Snippets