From 6f2bf0b1396747aeea622dd9f7fed8e346db85c4 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Mon, 18 Mar 2013 16:41:48 +0100 Subject: [PATCH 1/9] removed unused property --- arangod/VocBase/document-collection.c | 4 +++- arangod/VocBase/primary-collection.c | 2 -- arangod/VocBase/primary-collection.h | 13 ++++++------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/arangod/VocBase/document-collection.c b/arangod/VocBase/document-collection.c index fbc04e80bc..8c0a29c6b7 100644 --- a/arangod/VocBase/document-collection.c +++ b/arangod/VocBase/document-collection.c @@ -2706,7 +2706,9 @@ static int FillIndex (TRI_document_collection_t* document, TRI_index_t* idx) { ++inserted; if (inserted % 10000 == 0) { - LOG_DEBUG("indexed %llu documents of collection %llu", (unsigned long long) inserted, (unsigned long long) primary->base._info._cid); + LOG_DEBUG("indexed %llu documents of collection %llu", + (unsigned long long) inserted, + (unsigned long long) primary->base._info._cid); } } } diff --git a/arangod/VocBase/primary-collection.c b/arangod/VocBase/primary-collection.c index af31decca2..0b16aef06e 100644 --- a/arangod/VocBase/primary-collection.c +++ b/arangod/VocBase/primary-collection.c @@ -597,7 +597,6 @@ void TRI_InitContextPrimaryCollection (TRI_doc_operation_context_t* const contex context->_expectedRid = 0; context->_previousRid = NULL; context->_sync = forceSync || primary->base._info._waitForSync; - context->_allowRollback = true; } //////////////////////////////////////////////////////////////////////////////// @@ -611,7 +610,6 @@ void TRI_InitReadContextPrimaryCollection (TRI_doc_operation_context_t* const co context->_expectedRid = 0; context->_previousRid = NULL; context->_sync = false; - context->_allowRollback = false; } //////////////////////////////////////////////////////////////////////////////// diff --git a/arangod/VocBase/primary-collection.h b/arangod/VocBase/primary-collection.h index 09e8d366cd..f91dd27c6b 100644 --- a/arangod/VocBase/primary-collection.h +++ b/arangod/VocBase/primary-collection.h @@ -126,7 +126,6 @@ typedef struct TRI_doc_operation_context_s { TRI_voc_rid_t* _previousRid; // a variable that the previous revsion id found in the database will be pushed into. only used if set and for update/delete TRI_doc_update_policy_e _policy; // the update policy bool _sync : 1; // force syncing to disk after successful operation - bool _allowRollback : 1; // allow rollback of operation. this is normally true except for contexts created by rollback operations } TRI_doc_operation_context_t; @@ -135,12 +134,12 @@ TRI_doc_operation_context_t; //////////////////////////////////////////////////////////////////////////////// typedef struct TRI_doc_mptr_s { - TRI_voc_rid_t _rid; // this is the revision identifier - TRI_voc_fid_t _fid; // this is the datafile identifier - TRI_voc_tick_t _validFrom; // this is the creation time - TRI_voc_tick_t _validTo; // this is the deletion time (0 if document is not yet deleted) - void const* _data; // this is the pointer to the beginning of the raw marker - char* _key; // this is the document identifier (string) + TRI_voc_rid_t _rid; // this is the revision identifier + TRI_voc_fid_t _fid; // this is the datafile identifier + TRI_voc_tick_t _validFrom; // this is the creation time + TRI_voc_tick_t _validTo; // this is the deletion time (0 if document is not yet deleted) + void const* _data; // this is the pointer to the beginning of the raw marker + char* _key; // this is the document identifier (string) } TRI_doc_mptr_t; From 08bc3fc2be5a3f1904815ee17215d7d7e003f03a Mon Sep 17 00:00:00 2001 From: Heiko Kernbach Date: Mon, 18 Mar 2013 17:13:12 +0100 Subject: [PATCH 2/9] css & view fixes --- frontend/css/collectionView.css | 8 ++++++++ frontend/css/collectionsView.css | 6 ++++++ frontend/css/layout.css | 7 +++++++ frontend/css/navigationView.css | 4 +--- frontend/css/shellView.css | 4 ++++ frontend/js/templates/collectionsView.ejs | 2 +- frontend/js/templates/documentView.ejs | 2 +- frontend/js/views/documentView.js | 1 - frontend/js/views/documentsView.js | 18 ++++++++++++------ frontend/js/views/logsView.js | 1 - frontend/js/views/queryView.js | 1 - 11 files changed, 40 insertions(+), 14 deletions(-) diff --git a/frontend/css/collectionView.css b/frontend/css/collectionView.css index e69de29bb2..9af19ae425 100644 --- a/frontend/css/collectionView.css +++ b/frontend/css/collectionView.css @@ -0,0 +1,8 @@ +#save-new-collection, #save-modified-collection { + margin-right: 2px !important; +} + +#delete-modified-collection { + margin-left: 1px !important; +} + diff --git a/frontend/css/collectionsView.css b/frontend/css/collectionsView.css index 873b70f957..ace8002462 100644 --- a/frontend/css/collectionsView.css +++ b/frontend/css/collectionsView.css @@ -1,4 +1,10 @@ +.arango-nav li { + margin-left: 1px !important; +} +#transparentHeader .btn-group { + margin-top: 6px !important; +} #newCollection { margin-left: 22px; diff --git a/frontend/css/layout.css b/frontend/css/layout.css index 090605e37a..9d6afc9f0b 100644 --- a/frontend/css/layout.css +++ b/frontend/css/layout.css @@ -200,3 +200,10 @@ table .sorting { margin-bottom: 10px; } +.disabledHover { + cursor: default !important; +} + +.disabledHover:hover { + background-color: #8F8D8C !important; +} diff --git a/frontend/css/navigationView.css b/frontend/css/navigationView.css index 9639440a5c..c75bac90c1 100644 --- a/frontend/css/navigationView.css +++ b/frontend/css/navigationView.css @@ -1,6 +1,4 @@ -.arango-nav .active { - border-left: 1px solid black; - border-right: 1px solid black; +.arango-nav { } .dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a { diff --git a/frontend/css/shellView.css b/frontend/css/shellView.css index 063c068374..b2e70df091 100644 --- a/frontend/css/shellView.css +++ b/frontend/css/shellView.css @@ -125,3 +125,7 @@ .jqconsole-blurred .jqconsole-prompt, .jqconsole-blurred .jqconsole-old-prompt{ opacity: 0.7; } + +#queryOutput .ace_gutter-cell { + background-color: #F0F0F0 !important; +} diff --git a/frontend/js/templates/collectionsView.ejs b/frontend/js/templates/collectionsView.ejs index 6ad6ed76d9..cf17a56567 100644 --- a/frontend/js/templates/collectionsView.ejs +++ b/frontend/js/templates/collectionsView.ejs @@ -3,7 +3,7 @@
- +