提交 2b712b8c authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation / formatting

上级 a60ff0eb
...@@ -1208,7 +1208,7 @@ Ensure the existing accessible databases are protected using strong passwords. ...@@ -1208,7 +1208,7 @@ Ensure the existing accessible databases are protected using strong passwords.
</p> </p>
<p> <p>
If you enable remote access using <code>-webAllowOthers</code>, If you enable remote access using <code>-webAllowOthers</code>,
please ensure the web server can only be accessed from thrusted networks. please ensure the web server can only be accessed from trusted networks.
The options <code>-baseDir, -ifExists</code> don't protect The options <code>-baseDir, -ifExists</code> don't protect
access to the tools section, prevent remote shutdown of the web server, access to the tools section, prevent remote shutdown of the web server,
changes to the preferences, the saved connection settings, changes to the preferences, the saved connection settings,
......
...@@ -351,7 +351,7 @@ public class MVStore { ...@@ -351,7 +351,7 @@ public class MVStore {
int delay = o == null ? 1000 : (Integer) o; int delay = o == null ? 1000 : (Integer) o;
setAutoCommitDelay(delay); setAutoCommitDelay(delay);
} }
private void panic(IllegalStateException e) { private void panic(IllegalStateException e) {
try { try {
closeStore(false); closeStore(false);
......
...@@ -80,7 +80,7 @@ public class MVTable extends TableBase { ...@@ -80,7 +80,7 @@ public class MVTable extends TableBase {
/** /**
* Initialize the table. * Initialize the table.
* *
* @param session the session * @param session the session
*/ */
void init(Session session) { void init(Session session) {
...@@ -127,13 +127,13 @@ public class MVTable extends TableBase { ...@@ -127,13 +127,13 @@ public class MVTable extends TableBase {
} }
} }
} }
/** /**
* The the object on which to synchronize and wait on. For the * The the object on which to synchronize and wait on. For the
* multi-threaded mode, this is this object, but for non-multi-threaded, it * multi-threaded mode, this is this object, but for non-multi-threaded, it
* is the database, as in this case all operations are synchronized on the * is the database, as in this case all operations are synchronized on the
* database object. * database object.
* *
* @return the lock sync object * @return the lock sync object
*/ */
private Object getLockSyncObject() { private Object getLockSyncObject() {
...@@ -768,7 +768,7 @@ public class MVTable extends TableBase { ...@@ -768,7 +768,7 @@ public class MVTable extends TableBase {
/** /**
* Get the transaction to use for this session. * Get the transaction to use for this session.
* *
* @param session the session * @param session the session
* @return the transaction * @return the transaction
*/ */
......
...@@ -60,7 +60,7 @@ public class TestConcurrent extends TestMVStore { ...@@ -60,7 +60,7 @@ public class TestConcurrent extends TestMVStore {
testConcurrentWrite(); testConcurrentWrite();
testConcurrentRead(); testConcurrentRead();
} }
private void testConcurrentAutoCommitAndChange() throws InterruptedException { private void testConcurrentAutoCommitAndChange() throws InterruptedException {
String fileName = "memFS:testConcurrentChangeAndBackgroundCompact"; String fileName = "memFS:testConcurrentChangeAndBackgroundCompact";
FileUtils.delete(fileName); FileUtils.delete(fileName);
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
-- --
--- special grammar and test cases --------------------------------------------------------------------------------------------- --- special grammar and test cases ---------------------------------------------------------------------------------------------
-- TODO
create table results(eventId int, points int, studentId int); create table results(eventId int, points int, studentId int);
> ok > ok
...@@ -16,26 +18,26 @@ insert into results values(1, 10, 2), (2, 20, 2), (3, 5, 2); ...@@ -16,26 +18,26 @@ insert into results values(1, 10, 2), (2, 20, 2), (3, 5, 2);
insert into results values(1, 10, 3), (2, 20, 3), (3, 5, 3); insert into results values(1, 10, 3), (2, 20, 3), (3, 5, 3);
> update count: 3 > update count: 3
SELECT SUM(points) FROM RESULTS SELECT SUM(points) FROM RESULTS
WHERE eventID IN WHERE eventID IN
(SELECT eventID FROM RESULTS (SELECT eventID FROM RESULTS
WHERE studentID = 2 WHERE studentID = 2
ORDER BY points DESC ORDER BY points DESC
LIMIT 2 ) LIMIT 2 )
AND studentID = 2; AND studentID = 2;
SELECT eventID FROM RESULTS SELECT eventID FROM RESULTS
WHERE studentID = 2 WHERE studentID = 2
ORDER BY points DESC ORDER BY points DESC
LIMIT 2; LIMIT 2;
SELECT SUM(r.points) FROM RESULTS r, SELECT SUM(r.points) FROM RESULTS r,
(SELECT eventID FROM RESULTS (SELECT eventID FROM RESULTS
WHERE studentID = 2 WHERE studentID = 2
ORDER BY points DESC ORDER BY points DESC
LIMIT 2 ) r2 LIMIT 2 ) r2
WHERE r2.eventID = r.eventId WHERE r2.eventID = r.eventId
AND studentID = 2; AND studentID = 2;
drop table results; drop table results;
> ok > ok
......
...@@ -763,5 +763,4 @@ deque synchronizers affero kevent nikolaj hohmuth grajcar jens fogh hostnames ...@@ -763,5 +763,4 @@ deque synchronizers affero kevent nikolaj hohmuth grajcar jens fogh hostnames
operate resized jni yjp ownable starvation reaper biased introduce epoll hangs operate resized jni yjp ownable starvation reaper biased introduce epoll hangs
compaction aggressive powerful traversing pietrzak michi karl rewriting consequences compaction aggressive powerful traversing pietrzak michi karl rewriting consequences
linearly patching perfect hole sip enwiki flooding uniformly recursions happening linearly patching perfect hole sip enwiki flooding uniformly recursions happening
permanently nucleus forbidden student trusted
permanently thrusted nucleus forbidden
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论