Update of /cvsroot/ruby-session/ruby-session/src/apache/session
In directory usw-pr-cvs1:/tmp/cvs-serv15515
Modified Files:
file.rb
Log Message:
Fixed a NASTY NASTY bug that resulted in the loss of meta-data for a session.
This commit removes merging data that has changed on disk (same session opened
twice). Last write wins.
Index: file.rb
===================================================================
RCS file: /cvsroot/ruby-session/ruby-session/src/apache/session/file.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- file.rb 2001/11/18 23:53:49 1.4
+++ file.rb 2001/11/19 00:10:46 1.5
@@ -83,7 +83,6 @@
Marshal.dump(@data, f)
f.close()
rescue Errno::EEXIST
- self.restore
f = File.new(self.location, File::TRUNC|File::WRONLY, 0600)
Marshal.dump(@data, f)
f.close()
|