Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I appear to read this question differently than the others who have responded to it.

My interpretation of the question is frodo72 wondering why s/he is shown as having approved the node when ysth had already approved it.

Yes, there will likely always be race conditions like this. That is, if two people approve the same node at near the same time, then both of their actions may cause approval machinery to act. All that matters (much) is that such duplicate "effort" doesn't create real problems.

The oldest style of approval machinery actually inserts duplicate records for such a case, which is only a problem in that it adds inefficiency (as I recall).

The second-generation approval machinery (which was meant to replace the above but never quite got that far) inserts duplicate log records but avoids the inefficiency.

The third-generation approval machinery (which I started and castaway kindly finished writing and which will replace both of the above once it gets deployed, which isn't an easy thing to do which is why it hasn't happened yet despite it having been tested many months ago) is quite a bit more efficient in several ways. It also greatly reduces the size of the windows for such race conditions. It also fixes other race conditions that are actually problems. But it will still (though much less likely, as I recall) sometimes record two approval requests (who cares?).

- tye        


In reply to Re: Node approval overriding (1 2 3) by tye
in thread Node approval overriding by polettix

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found