commit | 600bdd82f58c7338e68ce2c8f04b17db4cf4f910 | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Tue Sep 01 12:12:20 2009 -0700 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Tue Sep 01 12:12:20 2009 -0700 |
tree | 277e8d9e639863feb9a0cda7fdb52652eb572cb1 | |
parent | 5e2a385c0d95f4a99dd8c562c6d2d79aa8546030 [diff] |
Breaking sleep after yield into small quanta. Rationale: there is no reason to sleep for 4 seconds between transactions if there is no one using the database. This long sleep only makes sense if two threads are actively using the database yielding to each other every several seconds.