Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-11-10 09:45:18 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
413573d5abb6063aac31b84c9f6dce4e2caed547
413573d5
1 parent
7cd48f36
MapDBLog: reduce cache size
Change-Id: I4a3ba607e85fb1ac1b350ca84bfa88a51a59773e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/MapDBLog.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/MapDBLog.java
View file @
413573d
...
...
@@ -41,6 +41,8 @@ public class MapDBLog implements Log {
private
static
final
String
LOG_NAME
=
"log"
;
private
static
final
String
SIZE_FIELD_NAME
=
"size"
;
private
int
cacheSize
=
256
;
public
MapDBLog
(
String
dbFileName
,
StoreSerializer
serializer
)
{
this
.
dbFile
=
new
File
(
dbFileName
);
this
.
serializer
=
serializer
;
...
...
@@ -50,6 +52,8 @@ public class MapDBLog implements Log {
public
void
open
()
throws
IOException
{
txMaker
=
DBMaker
.
newFileDB
(
dbFile
)
.
cacheLRUEnable
()
.
cacheSize
(
cacheSize
)
.
makeTxMaker
();
}
...
...
Please
register
or
login
to post a comment