Summary of Changes(1.64 -> 1.65)

1) Fixed a bug(r397)
    After deleting directory object, s3fs could not make directory which was same name.
    It was a bug about cache logic for compatibility other S3 client.

2) Cleaned up source codes(r396)
    No changes for logic, only changes layout of functions and valiables between a file to a file.
    Adds s3fs_util.cpp/s3fs_util.h/common.h




git-svn-id: http://s3fs.googlecode.com/svn/trunk@397 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ggtakec@gmail.com 2013-03-30 14:03:06 +00:00
parent 953aedd7ad
commit a35cdc73b7
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(s3fs, 1.64)
AC_INIT(s3fs, 1.65)
AC_CANONICAL_SYSTEM

View File

@ -23,6 +23,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include <iostream>
#include <string>
#include <map>
@ -124,6 +125,15 @@ void delete_stat_cache_entry(const char *path)
if(iter != stat_cache.end()){
stat_cache.erase(iter);
}
if(0 < strlen(path) && '/' != path[strlen(path) - 1]){
// If there is "path/" cache, delete it.
string strpath = path;
strpath += "/";
iter = stat_cache.find(strpath.c_str());
if(iter != stat_cache.end()){
stat_cache.erase(iter);
}
}
pthread_mutex_unlock(&stat_cache_lock);
}