Displaying 3 results from an estimated 3 matches for "call_count".
2007 Nov 28
6
Class variable does not retain its value in rails
...able ("static" in Java/C#)
doesn''t retain its value in Rails? The following code works well in the
Ruby console (the number is incremented all the time even though new
instances are created), but in Rails it always restarts at 1.
In the /libs/ folder:
class StaticTest
@@call_count = 0
def increment
@@call_count += 1
"@@call_count incremented to " + @@call_count.to_s
end
end
In the controller:
def index
@s = StaticTest.new
end
On the view:
<h1><%=@s.increment%></h1>
Could it be that in Rails ever...
2013 Sep 06
2
[Gluster-devel] GlusterFS 3.3.1 client crash (signal received: 6)
It's a pity I don't know how to re-create the issue. While there are 1-2 crashed clients in total 120 clients every day.
Below is gdb result:
(gdb) where
#0 0x0000003267432885 in raise () from /lib64/libc.so.6
#1 0x0000003267434065 in abort () from /lib64/libc.so.6
#2 0x000000326746f7a7 in __libc_message () from /lib64/libc.so.6
#3 0x00000032674750c6 in malloc_printerr () from
2010 Apr 22
1
Transport endpoint not connected
Hey guys,
I've recently implemented gluster to share webcontent read-write between
two servers.
Version : glusterfs 3.0.4 built on Apr 19 2010 16:37:50
Fuse : 2.7.2-1ubuntu2.1
Platform : ubuntu 8.04LTS
I used the following command to generate my configs:
/usr/local/bin/glusterfs-volgen --name repstore1 --raid 1
10.10.130.11:/data/export