search for: transaction

Displaying 20 results from an estimated 6663 matches for "transaction".

2007 Sep 11
6
xs transaction
Seems currently xenstore transaction provides confusing message in different places: a) comment of xs_transaction_start says "You can only have one transaction at any time." However do_transaction_start allows up to 10 transactions created, as long as all other existing transaction channel is idle at the time (conn->...
2017 Feb 28
2
make check failing in CentOS 6
...ecot builds just fine, but fails the tests in src/lib-index. Note that reverting this commit fixes the issue: https://github.com/dovecot/core/commit/dfa4b048ec9a174a42d6668e94501db2fb70793a $ make check for bin in test-mail-index-map test-mail-index-modseq test-mail-index-sync-ext test-mail-index-transaction-finish test-mail-index-transaction-update test-mail-transaction-log-append test-mail-transaction-log-view; do \ if ! ./$bin; then exit 1; fi; \ done mail index map lookup seq range ...................................... : ok 0 / 1 tests failed mail_transaction_log_file_get_modseq_next_offset()...
2006 Oct 04
1
GFS and samba problem, again
...ed with locking/Strick locking=Yes and No. Always happens the same problem I attach some samba logs (Level 3). Software Versions: Fedora 5 Samba 3.0.23 GFS 6.1.5 kernel 2.6.17-1.2187_FC5 Any help will be appreciated. Sandra Hernandez -------------- next part -------------- ................ Transaction 25 of length 53 switch message SMBecho (pid 2937) conn 0x0 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 echo 1 times setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 Transaction 26 of length 80 switch message SMBtrans2 (pid 2937) conn 0x8f6b038 fetch sid from uid cache 501 -> S-1-5-21-4041271566...
2010 Aug 04
6
[PATCH -v2 0/3] jbd2 scalability patches
...rsion fixes three bugs in the 2nd patch of this series that caused kernel BUG when the system was under race. We weren't accounting with t_oustanding_credits correctly, and there were race conditions caused by the fact the I had overlooked the fact that __jbd2_log_wait_for_space() and jbd2_get_transaction() requires j_state_lock to be write locked. Theodore Ts'o (3): jbd2: Use atomic variables to avoid taking t_handle_lock in jbd2_journal_stop jbd2: Change j_state_lock to be a rwlock_t jbd2: Remove t_handle_lock from start_this_handle() fs/ext4/inode.c | 4 +- fs/ext4/super...
2005 Sep 09
7
[PATCH 0/6] jbd cleanup
...of them can apply to 2.6.13-mm2. fs/jbd/checkpoint.c | 179 +++++++++++-------------------------------- fs/jbd/commit.c | 101 ++++++++++-------------- fs/jbd/journal.c | 11 +- fs/jbd/revoke.c | 158 ++++++++++++++----------------------- fs/jbd/transaction.c | 113 +++++---------------------- include/linux/jbd.h | 28 +++--- include/linux/journal-head.h | 4 7 files changed, 201 insertions(+), 393 deletions(-)
2005 Apr 10
0
imap segfault in mail-index-sync.c
...le_offset == (index)->hdr->log_file_ext_offset) index->hdr is NULL dovecot: Apr 09 20:52:07 Error: 27413 IMAP(support): Fixed index file /mailhome/new/m/2/support/.imap/INBOX/dovecot.index: recent_messages_count 12 -> 0 dovecot: Apr 09 20:52:11 Error: 27413 IMAP(support): Corrupted transaction log file /mailhome/new/m/2/support/.imap/INBOX/dovecot.index.log: Extension introduction for unknown id 1 dovecot: Apr 09 20:52:11 Error: 27413 IMAP(support): Corrupted index file /mailhome/new/m/2/support/.imap/INBOX/dovecot.index: File too small dovecot: Apr 09 20:52:12 Error: child 27413 (imap)...
2017 Feb 28
0
make check failing in CentOS 6
...the tests in src/lib-index. > > Note that reverting this commit fixes the issue: > https://github.com/dovecot/core/commit/dfa4b048ec9a174a42d6668e94501db2fb70793a > > $ make check > for bin in test-mail-index-map test-mail-index-modseq > test-mail-index-sync-ext test-mail-index-transaction-finish > test-mail-index-transaction-update test-mail-transaction-log-append > test-mail-transaction-log-view; do \ > if ! ./$bin; then exit 1; fi; \ > done > mail index map lookup seq range ...................................... : ok > 0 / 1 tests failed > mail_transactio...
2007 Jan 04
6
after_update attributes problem
...ine a after_update callback on a model, the attributes of the object have the same values that they had *before* Base.save was called. I''m probably wrong so here''s the code: UNIT TEST: def test_register_item_adjusts_account_balance account = accounts(:cams_credit_card) transaction = RegisterItem.new(:date => ''2006-10-31'', :description => ''Chinese food'', :amount => ''-13.44'') transaction.account = account transaction.save assert_equal...
2006 Jun 27
2
Transaction syntax for > 1 table/model
If I want to wrap two account updates, the syntax is ... Account.transaction(dennis, david) do dennis.withdraw(10); david.deposit(10); end .. where both dennis and david are instances of Account. Can someone please let me know what the syntax is for starting and ending a *single* database transactions which spans two *different* kinds of models/tables ? Dennis Byr...
2005 Apr 02
4
Question about "reply from worker without password scheme"
I have dovecot-1.0-test64 installed on OpenBSD-3.6. It works fine with local password. Now I fail to get dovecot to use MySQL to query for user details. Any help would be very appreciated. Here are the details: from /var/log/maillog: 1) with "default_pass_scheme = PLAIN" Apr 3 07:20:22 www dovecot: Dovecot v1.0-test64 starting up Apr 3 07:20:23 www dovecot:
2007 Jun 30
3
transactions with two models
Hi, In Agile Web Development with Rails section on Transactions (p 381) there are two main examples. 1) making changes in two records in the same database table 2) making changes in two records each in a different *database* I want to do what is in between: changes in two records each in a different table of the same database. Suppose they are apples and ora...
2006 May 16
5
Transactions in RoR
Hi, Does anyone knows how to manage transactions in RoR. Thanx
2007 Apr 30
2
has_many :through polymorphic
Hi All, I have the following arrangement: class PickAndPackRequest < ActiveRecord::Base has_many :transactions, :as => :request has_many :postings, :through => :transactions end class Transaction < ActiveRecord::Base belongs_to :request, :polymorphic => true has_many :postings end class Posting < ActiveRecord::Base belongs_to :transaction end But when I ask for PickAndPackRequest....
2009 Jul 29
1
ocfs2 quota qs.
Hi Jan, I am now reading quota support in ocfs2 and have some qs. Wish you can help me clarify it. Thanks. ocfs2_quota_write: In the comment, you said that "we know the transaction is already started", so it should be called within a transaction. But in this function, we call ocfs2_extend_no_holes and ocfs2_simple_size_update which will start another transaction. So we can survive with nested transaction or this scenario will never happen? Regards, Tao
2007 Dec 06
1
yum upgrade fails on pm-utils dependancy
...primary.xml.gz 100% |=========================| 60 kB 00:00 extras : ################################################## 190/190 Added 190 new packages, deleted 0 old in 4.10 seconds 0 packages excluded due to repository priority protections Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for selinux-policy-targeted to pack into transaction set. selinux-policy-targeted-2 100% |=========================| 46 kB 00:00 ---> Package selinux-policy-targeted.noarch 0:2.4.6-106.el5_1.3 set to be updated ---> Dow...
2006 Aug 08
3
Database transactions
Hello, I have an application where I need to create two records in a database transaction. ie: begin User.transaction(user) do User_details.transaction(user_details) do user.save user_details.save end end end rescue flash[:notice] "Insert rolled back... but why..??" end >From reading the Agile book, I gather that once I w...
2009 Aug 28
2
Association extension method
In my application a user working at a dropzone can manipulate transactions against customer accounts. Here''s my models: class Transaction < ActiveRecord::Base belongs_to :account end class Account < ActiveRecord::Base belongs_to :dropzone has_many :transactions end class Dropzone < ActiveRecord::Base has_many :transactions, :through =>...
2006 Jun 15
4
testing with transactions
Hello! I experienced problems with testing transactions which are supposed to be rolled back, but are not, because of transactional fixtures eliminating the inner transaction. Can this be worked around somehow without turning off transactional fixtures? Maybe savepoints can help this? Does anyone have any experience with savepoints to achieve neste...
2006 May 19
7
AR transactions and isolation levels
I''m trying to create a sequence with no gaps in my db (contrived example, but should work out the same as my real one), and believe db-managed transactions are the way to go about this. It''s my first real ''go'' at transactions, so I may be mistaken about how things really work. Anyway.. Consider this example code: Class Invoice < ActiveRecord::Base def self.create_new self.transaction do self.connection.ex...
2006 Aug 15
0
SystemStackError: stack level too deep
...rd/callbacks.rb:330:in `callback'' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:296:in `valid?'' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/validations.rb:743:in `save_without_transactions'' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/transactions.rb:120:in `save_without_validation'' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements....