Displaying 9 results from an estimated 9 matches for "unlock_mutex".
2009 Feb 17
1
[PATCH 1/1] OCFS2: anti stale inode for nfs (V3)
...loc_slot);
+ goto unlock_nfs_sync;
+ }
+
+ mutex_lock(&inode_alloc_inode->i_mutex);
+ status = ocfs2_inode_lock(inode_alloc_inode, &alloc_bh, 0);
+ if (status < 0) {
+ mlog(ML_ERROR, "lock on alloc inode on slot %u failed %d\n",
+ (u32)suballoc_slot, status);
+ goto unlock_mutex;
+ }
+ status = ocfs2_test_suballoc_bit(osb, inode_alloc_inode, alloc_bh,
+ blkno, suballoc_bit, &set);
+ if (status < 0) {
+ mlog(ML_ERROR, "test suballoc bit failed %d\n", status);
+ goto inode_unlock;
+ }
+ /* allocate bit is clear, inode is a stale inode */
+ if (!set) {...
2006 Apr 13
1
Setting up Testing model, getting an error
...2) Error:
test_create(ProductTest):
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.-
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/transactions.rb:112:in
`unlock_mutex''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:534:in
`teardown''
1 tests, 0 assertions, 0 failures, 2 errors
-----
I had already created all relevant text fixtures and had already
modiefied my product_test.rb file prior to running thi...
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2006 Nov 07
4
Unknown column 'id' in 'field list
...h_empty_attributes(ActiveUserMetricTest):
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.-
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/transactions.rb:112:in
`unlock_mutex''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:534:in
`teardown''
1 tests, 0 assertions, 0 failures, 2 errors
What should I do to solve this problem? Any help is appreciated.
Thanks,
Justin
--
Posted via http://www.ruby-forum.com/.
--~...
2005 Dec 30
1
Problems with Testing (Depot) demo app in Agile Rails book
...'
2) Error:
test_truth(OrderTest):
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.-
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/transactions.rb:112:in
`unlock_mutex''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:509:in
`teardown''
1 tests, 0 assertions, 0 failures, 2 errors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8. Worse still, none of the d...
2006 Jan 18
15
Anyone got Globalize working???
Hi all
In another thread I complain about an error I get after trying to get
Globalize working.
http://www.ruby-forum.com/topic/51988#new
Now I want to ask you, if anybody of you has ever got Globalize working?
I have done exactly what''s written in the (absolutely much too short)
tutorial of its wiki...
http://globalize.diluvia.net/wiki
...and I''m very frustrated that no
2007 Nov 18
18
mongrel and fastthread on ruby 1.9?
Is anybody testing mongrel on ruby 1.9. I just tried installing
mongrel on trunk 1.9 and trunk rubygems and got this error compiling
fastthread:
/Users/stephen/dev/ruby/1.9_trunk/bin/ruby extconf.rb install mongrel --no-rdoc
creating Makefile
make
gcc -I.
-I/Users/stephen/dev/ruby/1.9_trunk/include/ruby-1.9/i686-darwin8.10.1
-I/Users/stephen/dev/ruby/1.9_trunk/include/ruby-1.9 -I.
2002 Oct 05
2
ogg123 remote interface
...atisfy
- the following three requirements:
-
- 1. Do not copy more bytes than are stored in the buffer.
- 2. Do not copy more bytes than the reqested data size.
- 3. Do not run off the end of the buffer. */
write_amount = compute_dequeue_size(buf, nbytes);
UNLOCK_MUTEX(buf->mutex);
-------------- next part --------------
diff -urN -X diff.ignore ogg123.orig/ogg123.c ogg123/ogg123.c
--- ogg123.orig/ogg123.c Sat Oct 5 14:44:04 2002
+++ ogg123/ogg123.c Sat Oct 5 14:58:50 2002
@@ -270,7 +270,6 @@
{
int option_index;
char **playlist_array;
- int items;...
2017 Jan 20
9
[RFC] IR-level Region Annotations
Hi Sanjoy,
Yes, that's exactly what we have been looking at recently here, but the region tags seem to make it possible to express the control flow as well, so I think we could start with reg ions+metadata, as Hal and Xinmin proposed, and then figure out what needs to be first class instructions.
--Vikram Adve
> On Jan 19, 2017, at 11:03 PM, Sanjoy Das <sanjoy at