Index storage cpp --- storage cpp revision 9281 storage cpp working co

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Index: storage.cpp
===================================================================
--- storage.cpp (revision 9281)
+++ storage.cpp (working copy)
@@ -399,7 +399,12 @@
{
m_file_priority = prio;
}
-
+#define D_OUT( s ) \
+{ \
+ std::wostringstream os_; \
+ os_ << std::boolalpha << s << std::endl; \
+ OutputDebugString( os_.str().c_str() ); \
+}
bool default_storage::initialize(bool allocate_files)
{
m_allocate_files = allocate_files;
@@ -435,6 +440,15 @@
file_status s;
stat_file(file_path, &s, ec);
+D_OUT("");
+error_code nsfod = boost::system::errc::make_error_code(boost::system::errc::no_such_file_or_directory);
+D_OUT("[ ][ ][ ][ ][ ][ ][ ] ec.value(): " << ec.value());
+D_OUT("[ ][ ][ ][ ][ ][ ][ ] ec.category().name(): " << ec.category().name());
+D_OUT("[ ][ ][ ][ ][ ][ ][ ] no_such_file_or_directory: " << boost::system::errc::no_such_file_or_directory);
+D_OUT("[ ][ ][ ][ ][ ][ ][ ] nsfod.category().name(): " << nsfod.category().name());
+D_OUT("[ ][ ][ ][ ][ ][ ][ ] ec == boost::system::errc::no_such_file_or_directory: " << (ec == boost::system::errc::no_such_file_or_directory));
+D_OUT("[ ][ ][ ][ ][ ][ ][ ] ec == nsfod: " << (ec == nsfod));
+D_OUT("");
if (ec && ec != boost::system::errc::no_such_file_or_directory
&& ec != boost::system::errc::not_a_directory)
{