Searched refs:bytes_to_corrupt (Results 1 – 2 of 2) sorted by relevance
| /rocksdb-6.9/db/ |
| D | corruption_test.cc | 160 void CorruptFile(const std::string& fname, int offset, int bytes_to_corrupt) { in CorruptFile() argument 178 if (offset + bytes_to_corrupt > sbuf.st_size) { in CorruptFile() 179 bytes_to_corrupt = static_cast<int>(sbuf.st_size - offset); in CorruptFile() 186 for (int i = 0; i < bytes_to_corrupt; i++) { in CorruptFile() 196 void Corrupt(FileType filetype, int offset, int bytes_to_corrupt) { in Corrupt() argument 214 CorruptFile(fname, offset, bytes_to_corrupt); in Corrupt() 219 void CorruptTableFileAtLevel(int level, int offset, int bytes_to_corrupt) { in CorruptTableFileAtLevel() argument 224 CorruptFile(dbname_ + "/" + m.name, offset, bytes_to_corrupt); in CorruptTableFileAtLevel()
|
| /rocksdb-6.9/utilities/backupable/ |
| D | backupable_db_test.cc | 414 Status CorruptFile(const std::string& fname, uint64_t bytes_to_corrupt) { in CorruptFile() argument 425 for (uint64_t i = 0; i < bytes_to_corrupt; ++i) { in CorruptFile()
|