Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10225101483
/
XOY-Leveldb
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
1
Lanzamientos
0
Wiki
Actividad
Explorar el Código
Defend against inclusion of windows.h in tests that invoke
Env::DeleteFile. PiperOrigin-RevId: 283607548
xry
leveldb Team
hace 5 años
cometido por
Victor Costan
padre
58a89bbcb2
commit
d152b23f3b
Se han
modificado 6 ficheros
con
30 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+5
-0
benchmarks/db_bench.cc
+5
-0
db/db_test.cc
+5
-0
db/fault_injection_test.cc
+5
-0
db/recovery_test.cc
+5
-0
helpers/memenv/memenv_test.cc
+5
-0
util/env_test.cc
+ 5
- 0
benchmarks/db_bench.cc
Ver fichero
@ -18,6 +18,11 @@
#
include
"util/random.h"
#
include
"util/testutil.h"
#
if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#
undef DeleteFile
#
endif
// Comma-separated list of operations to run in the specified order
// Actual benchmarks:
// fillseq -- write N values in sequential key order in async mode
+ 5
- 0
db/db_test.cc
Ver fichero
@ -23,6 +23,11 @@
#
include
"util/mutexlock.h"
#
include
"util/testutil.h"
#
if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#
undef DeleteFile
#
endif
namespace
leveldb
{
static
std
:
:
string
RandomString
(
Random
*
rnd
,
int
len
)
{
+ 5
- 0
db/fault_injection_test.cc
Ver fichero
@ -25,6 +25,11 @@
#
include
"util/mutexlock.h"
#
include
"util/testutil.h"
#
if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#
undef DeleteFile
#
endif
namespace
leveldb
{
static
const
int
kValueSize
=
1000
;
+ 5
- 0
db/recovery_test.cc
Ver fichero
@ -13,6 +13,11 @@
#
include
"util/logging.h"
#
include
"util/testutil.h"
#
if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#
undef DeleteFile
#
endif
namespace
leveldb
{
class
RecoveryTest
:
public
testing
:
:
Test
{
+ 5
- 0
helpers/memenv/memenv_test.cc
Ver fichero
@ -13,6 +13,11 @@
#
include
"leveldb/env.h"
#
include
"util/testutil.h"
#
if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#
undef DeleteFile
#
endif
namespace
leveldb
{
class
MemEnvTest
:
public
testing
:
:
Test
{
+ 5
- 0
util/env_test.cc
Ver fichero
@ -12,6 +12,11 @@
#
include
"util/mutexlock.h"
#
include
"util/testutil.h"
#
if defined(_WIN32) && defined(DeleteFile)
// See rationale in env.h
#
undef DeleteFile
#
endif
namespace
leveldb
{
static
const
int
kDelayMicros
=
100000
;
Escribir
Vista previa
Cargando…
Cancelar
Guardar