ovsdb: Check that ovsdb-server truncates corrupted database logs.
authorBen Pfaff <blp@nicira.com>
Mon, 28 Mar 2011 19:57:20 +0000 (12:57 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 31 Mar 2011 23:43:51 +0000 (16:43 -0700)
commitdb90b3742c578681ad7ba5ccc5ec4e45a314496e
treea5a317fe8cb4244c5a7ad5c18b6559712a379422
parentff9f6644cb79d3ea5271c783704eb5092f503612
ovsdb: Check that ovsdb-server truncates corrupted database logs.

When ovsdb-server reads a database that is corrupted at the log level
(that is, when ovsdb_log detects the corruption by checking the SHA-1 hash
of the record or JSON parser error reporting), then writing to the database
should discard the corrupted data and thereby fix the problem for future
ovsdb-server runs.

This already worked OK.  This just adds an extra test.
tests/ovsdb-server.at