syncthing/lib/db
Jakob Borg b779e22205 lib/model: Don't set ignore bit when it's already set
This adds a metric for "committed items" to the database instance that I
use in the test code, and a couple of tests that ensure that scans that
don't change anything also don't commit anything.

There was a case in the scanner where we set the invalid bit on files
that are ignored, even though they were already ignored and had the
invalid bit set. I had assumed this would result in an extra database
commit, but it was in fact filtered out by the Set... Anyway, I think we
can save some work on not pushing that change to the Set at all.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3298
2016-06-13 17:44:03 +00:00
..
testdata Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
.gitignore Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
benchmark_test.go Benchmark must use *db.Instance 2015-11-05 17:46:53 +00:00
blockmap_test.go Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
blockmap.go Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
concurrency_test.go mv internal lib 2015-08-09 09:35:26 +02:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
leveldb_convert_test.go Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
leveldb_convert.go Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
leveldb_dbinstance.go lib/model: Don't set ignore bit when it's already set 2016-06-13 17:44:03 +00:00
leveldb_test.go lib: Use bytes.Equal instead of bytes.Compare where possible 2016-03-31 15:12:46 +00:00
leveldb_transactions.go lib/model: Don't set ignore bit when it's already set 2016-06-13 17:44:03 +00:00
leveldb_xdr.go lib/db,cmd/stindex: Expose VersionList and use it in stindex 2016-05-31 19:29:26 +00:00
leveldb.go lib/db,cmd/stindex: Expose VersionList and use it in stindex 2016-05-31 19:29:26 +00:00
namespaced_test.go We should pass around db.Instance instead of leveldb.DB 2015-10-31 12:35:30 +01:00
namespaced.go We should pass around db.Instance instead of leveldb.DB 2015-10-31 12:35:30 +01:00
set_test.go lib/model: Don't set ignore bit when it's already set 2016-06-13 17:44:03 +00:00
set.go lib/db: Have prefix should be normalized 2016-05-28 04:18:31 +00:00
truncated.go Increase maximum allowed file size to 10 Mblocks 2016-03-04 16:24:54 +01:00
virtualmtime_test.go We should pass around db.Instance instead of leveldb.DB 2015-10-31 12:35:30 +01:00
virtualmtime.go Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00